﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using DbFramework.Data;
using DbFramework.Data.ORM;
using DbFramework.Data.ORM.Attributes;
using DbFramework.Data.Query;

namespace BasicLight.Web.Logics
{
    public class RadioBase
    {
        public static EntitySet<Models.RadioBase> RadioList()
        {
            ORMQuery<Models.RadioBase> querier = new ORMQuery<Models.RadioBase>();
            SQLCondition conditions = new SQLCondition();

            conditions.AddCondition(Models.RadioBase.M_CREATEDATE, ELogicalType.NotEquals, String.Empty);
            conditions.AND();
            conditions.AddCondition(Models.RadioBase.M_NAME, ELogicalType.NotEquals, String.Empty);

            EntitySet<Models.RadioBase> result = querier.Query(conditions, null);

            return result;
        }
    }
}